"""
@Project ：HaloInterfaceProject 
@File    ：GetArticleCategories.py
@IDE     ：PyCharm 
@Author  ：张成龙
@Date    ：2024/10/24 9:50 
@explain ：获取文章分类
"""
import requests

from api import SYSTEM_URL, SESSION


class GetArticleCategories:

    def __init__(self):
        self.url = SYSTEM_URL + "/apis/content.halo.run/v1alpha1/categories"
        self.headers = {
            'Cookie': SESSION
        }

    def get_article_categories(self):

        response = requests.get(self.url, headers=self.headers)

        return response